﻿using System.Linq;
using SlamCms.Collections;

namespace SlamCms.Common
{
	public static class PaginationExtensions
	{
		public static PagedList<T> ToPagedList<T>(this IQueryable<T> source, int index, int pageSize = 10)
		{
			return new PagedList<T>(source, index, pageSize);
		}
	}
}
